package cn.sycoder.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.models.auth.In;
import lombok.Data;

/**
 * <p>
 * 
 * </p>
 *
 * @author 杨润发
 * @since 2024-11-01
 */
@TableName("login_records")
@Data
@ApiModel(value = "LoginRecords对象", description = "")
public class LoginRecords implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("登录用户名")
    private String userName;

    @ApiModelProperty("登录密码")
    private String userPassword;

    // 自动填充
    @TableField(value = "login_time",fill = FieldFill.INSERT)
    @ApiModelProperty("登录时间")
    private Date loginTime;


}
